package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import lombok.Data;

@Data
@ApiModel(value = "com-shycloud-mido-member-api-entity-AtvMainOfflineMemberDetail")
@TableName(value = "atv_main_offline_member_detail")
public class AtvMainOfflineMemberDetail {

	@TableId(value = "id", type = IdType.UUID)
	@ApiModelProperty(value = "")
	private String id;

	/** 活动表ID */
	@NotBlank(message = "活动主表ID不能位空")
	@TableField(value = "main_offline_id")
	@ApiModelProperty(value = "活动表ID", required = true)
	private String mainOfflineId;

	/** 分享者姓名 */
	@TableField(value = "name")
	@ApiModelProperty(value = "")
	private String name;
	/** 分享者联系方式 */
	@TableField(value = "phone")
	@ApiModelProperty(value = "分享者联系方式")
	private String phone;

	/** 1  一级分享 2 二级分享（可能有奖励） */
	@TableField(value = "type")
	@NotBlank(message = "分享类型不能为空")
	@ApiModelProperty(value = "1  一级分享,2  二级分享（可能有奖励）", required = true)
	private String type;

	@TableField(value = "first_share_id")
	@ApiModelProperty(value = "一级分享的ID（父ID）查询二级分享列表用")
	private String firstShareId;

	/** 分享时间 */
	@TableField(value = "create_time")
	@ApiModelProperty(value = "分享时间")
	private LocalDateTime createTime;

	public static final String COL_ID = "id";

	public static final String COL_MAIN_OFFLINE_ID = "main_offline_id";

	public static final String COL_NAME = "name";

	public static final String COL_TYPE = "type";

	public static final String COL_FIRST_SHARE_ID = "first_share_id";

	public static final String COL_CREATE_TIME = "create_time";
}